<?php


namespace app\controller;


class WebInfo
{
    public function readFreshInfo(\app\model\WebInfo $model)
    {
        return $model->readFreshInfo();
    }

    public function updateWebInfo(\app\model\WebInfo $model)
    {
        $model->webName = input('param.web_name');
        $model->webKeywords = input('param.web_keywords');
        $model->webDes = input('param.web_des');
        record_log('修改了 网站信息 ');
        return boolval($model->updateWebInfo()) == true ?
            json(200) : json(500);
    }
}